package com.hackintosh.state.student;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/23
 * @modified By：
 * @version: 1.0
 */
public class ScoreContext {
    private AbstractState state;

    public AbstractState getState() {
        return state;
    }

    public void setState(AbstractState state) {
        this.state = state;
    }

    public ScoreContext() {
        this.state = new LowState(this);
    }

    public void add(int score) {
        this.state.addScore(score);
    }
}
